/**
 * @file ebex_crc.h
 *
 * @date Sep 9, 2010
 * @author seth
 * 
 * @brief This file is part of EBEX State Estimator, created for the EBEX project
 *
 * This software is copyright (C) 2010 Columbia University
 *
 * EBEX State Estimator is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * EBEX State Estimator is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with EBEX State Estimator; if not, write to the Free Software Foundation, Inc.,
 * 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */


#ifndef EBEX_CRC_H_
#define EBEX_CRC_H_

#include <stdint.h>

#ifdef CRC32_SEED
#undef CRC32_SEED
#endif
#define CRC32_SEED 0x58454245
#ifdef CRC16_SEED
#undef CRC16_SEED
#endif
#define CRC16_SEED 0xEB90

uint32_t ebex_crc32(const uint8_t*, size_t, uint32_t);
uint16_t ebex_crc16(const uint8_t *m_buf, size_t m_size, uint16_t m_seed);

#endif /* EBEX_CRC_H_ */
